package com.lxmes.sales.mapper;

import java.util.List;

import com.lxmes.common.annotation.DataScope;
import com.lxmes.sales.domain.ZcQuotationDetails;

/**
 * 报价明细Mapper接口
 *
 * @author lx
 * @date 2023-06-21
 */
public interface ZcQuotationDetailsMapper
{
    /**
     * 查询报价明细
     *
     * @param id 报价明细主键
     * @return 报价明细
     */
    public ZcQuotationDetails selectZcQuotationDetailsById(Long id);

    /**
     * 查询报价明细列表
     *
     * @param zcQuotationDetails 报价明细
     * @return 报价明细集合
     */
    @DataScope(deptAlias = "de", userAlias = "de")
    public List<ZcQuotationDetails> selectZcQuotationDetailsList(ZcQuotationDetails zcQuotationDetails);

    /**
     * 新增报价明细
     *
     * @param zcQuotationDetails 报价明细
     * @return 结果
     */
    public int insertZcQuotationDetails(ZcQuotationDetails zcQuotationDetails);

    /**
     * 修改报价明细
     *
     * @param zcQuotationDetails 报价明细
     * @return 结果
     */
    public int updateZcQuotationDetails(ZcQuotationDetails zcQuotationDetails);

    /**
     * 删除报价明细
     *
     * @param id 报价明细主键
     * @return 结果
     */
    public int deleteZcQuotationDetailsById(Long id);

    /**
     * 批量删除报价明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteZcQuotationDetailsByIds(Long[] ids);
}
